
<table class="table">
<thead>
	<tr>
	<td class="col-sm-1">&nbsp;</td>
						<td class="col-sm-1">tokenNumber</td>
					<td class="col-sm-1">purchaseDate</td>
					<td class="col-sm-1">purchaseMandi</td>
					<td class="col-sm-1">ownerName</td>
					<td class="col-sm-1">purchasePrice</td>
					<td class="col-sm-1">saleDate</td>
					<td class="col-sm-1">salePrice</td>
					<td class="col-sm-1">saleTo</td>
			</tr>
</thead>
<tbody>
	<?php foreach($modelCattle as $i=>$item): ?>
	<tr rowIndex="<?php echo $i; ?>">
	<td><a class="btn-sm btn btn-primary" href="javascript:void(0);"><i class="btn-deleterowcattle glyphicon glyphicon-remove"></i></a></td>	
			<?php echo CHtml::activeHiddenField($item,"[$i]id"); ?>	
			<td><?php echo CHtml::activeTextField($item,"[$i]tokenNumber",array('class'=>'form-control')); ?></td>	
			<td><?php echo '<div class="input-group date">',CHtml::activeTextField($item,"[$i]purchaseDate",array('class'=>'form-control')),'<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span></div>'; ?></td>	
			<td><?php echo CHtml::activeTextField($item,"[$i]purchaseMandi",array('class'=>'form-control')); ?></td>	
			<td><?php echo CHtml::activeTextField($item,"[$i]ownerName",array('class'=>'form-control')); ?></td>	
			<td><?php echo CHtml::activeTextField($item,"[$i]purchasePrice",array('class'=>'form-control')); ?></td>	
			<td><?php echo '<div class="input-group date">',CHtml::activeTextField($item,"[$i]saleDate",array('class'=>'form-control')),'<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span></div>'; ?></td>	
			<td><?php echo CHtml::activeTextField($item,'[$i]salePrice',array('class'=>'form-control')); ?></td>	
			<td><?php echo $form->textAreaRow($model,'saleTo',array('rows'=>6, 'cols'=>50, 'class'=>'form-control'),array('class'=>'form-control')); ?></td>	
		
	</tr>
	<?php endforeach; ?>
<tbody>
</table>